package com.biwin.common.app.basic;

import com.biwin.common.api.basic.IBwPage;

import java.util.List;

/**
 * TODO
 *
 * @author biwin
 * @since
 */
public class BwPage<Entity> implements IBwPage<Entity> {

    /**
     * 前端表格编号
     */
    protected String frontTableId;

    /**
     * 开始页码
     */
    protected Integer pageNo;

    /**
     * 每页条数
     */
    protected Integer pageLimit;

    /**
     * 总记录数
     */
    protected Integer count;

    /**
     * 总分页数
     */
    protected Integer totalPage;

    /**
     * 查询结果记录
     */
    protected List<Entity> dataList;

    public BwPage() {
    }

    public BwPage(Integer pageNo, Integer pageLimit) {
        this.pageNo = pageNo;
        this.pageLimit = pageLimit;
    }

    @Override
    public String getFrontTableId() {
        return frontTableId;
    }

    @Override
    public void setFrontTableId(String frontTableId) {
        this.frontTableId = frontTableId;
    }

    @Override
    public Integer getPageNo() {
        return pageNo;
    }

    @Override
    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    @Override
    public Integer getPageLimit() {
        return pageLimit;
    }

    @Override
    public void setPageLimit(Integer pageLimit) {
        this.pageLimit = pageLimit;
    }

    @Override
    public Integer getCount() {
        return count;
    }

    @Override
    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public Integer getTotalPage() {
        return totalPage;
    }

    @Override
    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    @Override
    public List<Entity> getDataList() {
        return dataList;
    }

    @Override
    public void setDataList(List<Entity> dataList) {
        this.dataList = dataList;
    }
}
